package org.lifei.org.domain;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.lifei.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lifei
 * @since 2024-01-17
 */
@Data
@Accessors(chain = true)
@TableName("t_org_employee")
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelEntity//导入用的注解
    @Excel(name = "序号")
    private Long id;

    @TableField("`username`")
    @ExcelEntity//导入用的注解
    @Excel(name = "名称",orderNum = "1")
    private String username;

    @ExcelEntity//导入用的注解
    @TableField("`password`")
    @Excel(name = "密码",orderNum = "2")
    private String password;

    @ExcelEntity//导入用的注解
    @TableField("`email`")
    @Excel(name = "邮箱",orderNum = "3",width = 22)
    private String email;

    @ExcelEntity//导入用的注解
    @TableField("`headImage`")
    @Excel(name = "头像",orderNum = "4",width = 22)
    private String headImage;

    @ExcelEntity//导入用的注解
    @TableField("`age`")
    @Excel(name = "年龄",orderNum = "5")
    private Integer age;

    @ExcelEntity//导入用的注解
    @TableField("`department_id`")
    @Excel(name = "部门",orderNum = "6",width = 20)
    private Department department;

    private Long department_id;


}
